import request from '@/utils/request'

// 查询礼物
export function findGift(param) {
  return request({
    url: '/vote/gift/selectGift',
    method: 'post',
    data: param
  })
}
// 创建礼物
export function createGift(param) {
  return request({
    url: '/vote/gift/addGift',
    method: 'post',
    data: param
  })
}
// 修改礼物
export function updateGift(param) {
  return request({
    url: '/vote/gift/updateGift',
    method: 'post',
    data: param
  })
}
// 删除礼物
export function deleteGift(param) {
  return request({
    url: '/vote/gift/deleteGift',
    method: 'post',
    data: param
  })
}

// 创建投票
export function createVote(param) {
  return request({
    url: '/vote/template/addVoteTemplate',
    method: 'post',
    data: param
  })
}
// 修改投票
export function updateVote(param) {
  return request({
    url: '/vote/template/updateVoteTemplate',
    method: 'post',
    data: param
  })
}
// 删除投票
export function deleteVote(param) {
  return request({
    url: '/vote/template/deleteVoteTemplate',
    method: 'post',
    data: param
  })
}
// 查询投票
export function findVote(param) {
  return request({
    url: '/vote/template/selectVoteTemplate',
    method: 'post',
    data: param
  })
}
//根据投票id查询艺术家
export function findArtistByVoteId(param) {
  return request({
    url: '/artistTemplate/selectTemplateArtist',
    method: 'post',
    data: param
  })
}

